import { SearchOutlined } from "@ant-design/icons"
import { Button } from "antd"

import { useLocale } from "@/locales"

const SearchButton = (props: any) => {
	const { formatMessage } = useLocale()
	return (
		<Button disabled={props.disabled} type="primary" icon={<SearchOutlined />} {...props}>
			{formatMessage({ id: props.labelId ?? "label.query" })}
		</Button>
	)
}

export default SearchButton
